<!--  -->
<template>
  <div class="params-info" v-if="Object.keys(goodsparams).length !== 0">
      <table v-for="(table,index) in goodsparams.sizes" class="info-size" :key="index">
          <tr v-for="(tr,indey) in table" :key="indey">
              <td v-for="(td,indez) in tr" :key="indez">{{td}}</td>
          </tr>
      </table>
      <table class="info-param">
          <tr v-for="(info,index) in goodsparams.infos">
              <td class="info-param-key">{{info.key}}</td>
              <td class="param-value">{{info.value}}</td>
          </tr>
      </table>
      <div class="info-img" v-if="goodsparams.image.length !== 0">
          <img :src="goodsparams.image" alt="">
      </div>
  </div>
</template>

<script>
export default {
  data () {
    return {
    }
  },
  props:{
      goodsparams:{
          type:Object,
          default() {
              return {}
          }
      }
  }
}
</script>

<style  scoped>
    .params-info{
        position: relative;
        z-index: 9;
        background-color: #fff;
        padding: 20px 15px;
        font-size: 14px;
        border-bottom: 5px solid #f2f5f8;
    }
    .params-info table {
        width: 100%;
        border-collapse: collapse;
    }
    .params-info table tr {
        height: 42px;
    }
    .params-info table tr td{
        border-bottom: 1px solid rgba(100, 100, 100, .1);
    }
    .info-param-key{
        width: 95px;
    }
    .info-param {
        border-top: 1px solid rgba(0, 0, 0, .1);
    }
    .param-value {
        color: #eb4868;
    }
    .info-img img {
        width: 100%;
    }
</style>
